package com.hz.basic.service.impl;

import com.hz.basic.entity.CbTypefaceEntity;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hz.common.utils.PageUtils;
import com.hz.common.utils.Query;

import com.hz.basic.dao.CbFixChapterTypefaceDao;
import com.hz.basic.entity.CbFixChapterTypefaceEntity;
import com.hz.basic.service.CbFixChapterTypefaceService;


@Service("cbFixChapterTypefaceService")
public class CbFixChapterTypefaceServiceImpl extends ServiceImpl<CbFixChapterTypefaceDao, CbFixChapterTypefaceEntity> implements CbFixChapterTypefaceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CbFixChapterTypefaceEntity> page = this.page(
                new Query<CbFixChapterTypefaceEntity>().getPage(params),
                new QueryWrapper<CbFixChapterTypefaceEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<CbTypefaceEntity> getTypefaceByCid(Long cid) {
        return this.baseMapper.getTypefaceByCid(cid);
    }

}